package com.sthz.facepay;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan(basePackages = "com.sthz.facepay.mapper")//配置mapper包扫描路径，将项目中对应的mapper类的路径加进来
public class SthzFacePayApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(SthzFacePayApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SthzFacePayApplication.class);
    }
}
